# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
s='hello,python'                 #居中对齐
print(s.center(20,'-'))
'''左对齐'''
print(s.ljust(20,'-'))
print(s.ljust(10,'-'))
print(s.ljust(20))
'''右对齐'''
print(s.rjust(20))
'''右对齐，左边进行0填充'''
print(s.zfill(20))
print(s.zfill(10))
print('-8546'.zfill(8))     #在符合左边进行填充